package org.srtc.infopub.infoProcessor;

import java.io.File;
import java.util.List;

import org.jdom.Document;
import org.jdom.Element;
import org.jdom.input.SAXBuilder;

public class infoTree
	{

		protected void readConfigure(String fileName)
			{
				File file = new File("info_define/"+fileName);
				try
					{			
					 SAXBuilder builder = new SAXBuilder();
				     Document doc = builder.build(file);
				     Element root = doc.getRootElement();
					 List<Element> list= root.getChildren("name");
					 
					 for(Element em:list)
					 {
						 
						 System.out.println(em.getText());
					 }

					} catch (Exception e)
					{
						e.printStackTrace();
					}
			}
		
		/**
		 * @param args
		 */
		public static void main(String[] args)
			{
				infoTree inftr=new infoTree();
				inftr.readConfigure("gzmxx.xml");

			}

	}
